package com.designpattern.SimpleFactoryPattern;

/**
 * @Author yp
 * @Date 2021-05-24
 * @Description 简单工厂测试
 **/

public class Test {
    public static void main(String[] args) {
        Person man = SampleFactory.makePerson(Man.class);
        man.say();

        Person women = SampleFactory.makePerson(Women.class);
        women.say();

    }
}
